package com.baizhi.service.impl;

import com.baizhi.dao.CmfzRoleDao;
import com.baizhi.entity.CmfzRole;
import com.baizhi.service.CmfzRoleService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
public class CmfzRoleServiceImpl implements CmfzRoleService {
    @Autowired
    private CmfzRoleDao cmfzRoleDao;


    @Override
    public Page<CmfzRole> selectCmfzRoleByPage(Integer page,Integer limit) {
        Page<CmfzRole> cmfzRolePage = new Page<>(page, limit);
        Page<CmfzRole> selectPage = cmfzRoleDao.selectPage(cmfzRolePage, null);
        return selectPage;
    }
}
